<script type="text/javascript" language="javascript">
	function ajaxDel(id)
	{
	  if(confirm('确定要删除吗？'))
		{
			jQuery.ajax(
				{
				type: "post", 
				url:  "delScoreFrame.jsp", 
				data: "id="+id, 
				success: function(data) 
					{ 
						location.href=window.location.href;
						alert(data);
					} 
				}
			); 
		}
	}
	
	
</script>
<style type="text/css">
#main table {
	border-top:1px #666666 solid;
	border-right:1px #666666 solid;
	background:url(../images/line_bg_list.gif) left top repeat;
}
#main table tr:hover td { background: #FFFB82; cursor:pointer; color:#000000;}/*隔行换色鼠标经过效果*/
#main td {
	border-left:1px #666666 solid;
	border-bottom:1px #666666 solid;
	height:29px;
	overflow:hidden;
}
</style>
<table width="90%" style="margin-top:20px;" border="0" align="center" cellpadding="10" cellspacing="0">
	<tr>
		<td>
		<div id="main">
			<h3>评价系统框架管理</h3>
			<fieldset>
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
				  <tr style="color:#FFFFFF">
					<td width="35%" align="center" valign="middle" bgcolor="#333333"><strong>评价名称</strong></td>
				    <td width="15%" align="center" valign="middle" bgcolor="#333333"><strong>占百分比</strong></td>
				    <td width="25%" align="center" valign="middle" bgcolor="#333333"><strong>添加子项</strong></td>
				    <td width="25%" align="center" valign="middle" bgcolor="#333333"><strong>操作</strong></td>
				  </tr>
				  #foreach($ScoreTree in $tree_list)	
				  <tr>
                    <td align="left" valign="middle" style="padding:0px 0px 0px 10px;">
                    #if($!ScoreTree.pid==0)
						$!ScoreTree.cateName
					#else 
					  
						┠$StringUtil.getLength("$!ScoreTree.deepPath")$!ScoreTree.cateName 
					#end
                    </td>
				    <td align="center" valign="middle">
				    #if($!ScoreTree.percent==0)
				        &nbsp;
				    #else
				    	$!ScoreTree.percent%
				    #end
				    </td>
				    <td align="center" valign="middle"><a href="addScoreFrame.jsp">添加子项</a></td>
				    <td align="center" valign="middle">
				    <a href="editScoreFrame.jsp?id=$!ScoreTree.id">修改</a> | <a href="javascript:void(0);" onclick="javascript:ajaxDel($!ScoreTree.id);">删除</a>
				    </td>
			      </tr>
				  #end
				</table>
			</fieldset>
		</div>
		</td>
	</tr>
</table>